package jp.aist.gtrc.plus.scheduler.node;


import jp.aist.gtrc.plus.scheduler.status.NodeStatus;
import jp.aist.gtrc.plus.scheduler.util.Checker;


public class UnusedNodeChecker  extends Checker<NodeInfo>{

	public boolean isOK(NodeInfo node){

                NodeStatus status = node.getStatus();
//System.out.println("node " + node.getName() + " " + status.getRunningJobNum());
		return (status.isAlive() && (status.getRunningJobNum() == 0));

	}

}
